// src/util/index.ts
export const formatCurrency = (value: number): string => {
    return value.toLocaleString('zh-CN', { 
      minimumFractionDigits: 2, 
      maximumFractionDigits: 2 
    })
  }
  
  export const getStatusType = (status: string): string => {
    switch (status) {
      case '已完成': return 'success'
      case '处理中': return 'warning'
      case '已取消': return 'info'
      case '失败': return 'danger'
      default: return ''
    }
  }